import { httpProxy } from "@ulits/axios";
export const getLogin = (params: any) =>
  httpProxy({
    method: "post",
    url: "/login",
    data: params,
  });
export const getLeftMenu = (uid: any) =>
  httpProxy({
    method: "post",
    url: "/leftMenu",
    data: { uid },
  });
// 获取listing数据
export const getListing = (obj: any) =>
  httpProxy({
    method: 'get',
    url: '/getListing',
    params: obj
  })
// 编辑listing数据
export const setListing = (obj: any) =>
  httpProxy({
    method: 'put',
    url: '/updateLis',
    data: obj
  })
// 删除listing数据
export const deleteLis = (bianhao: any) =>
  httpProxy({
    method: 'delete',
    url: '/deleteLis',
    params: bianhao
  })
// 添加listing数据
export const addLis = (obj: any) =>
  httpProxy({
    method: 'post',
    url: '/addLis',
    data: obj
  })
// 获取live数据
export const getLive = (obj: any) =>
  httpProxy({
    url: "/getLive",
    method: "get",
    params: obj
  })
// 修改直播flag
export const setFlag = (obj:any)=>
httpProxy({
  url: "/setFlag",
  method: "post",
  data: obj
})
// 修改直播flag
export const delLive = (obj:any)=>
httpProxy({
  url: "/delLive",
  method: "post",
  data: obj
})

